package ml.coursedesign.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import ml.coursedesign.entity.CourseClass;
import ml.coursedesign.mapper.CourseClassMapper;
import ml.coursedesign.service.CourseClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 服务实现类
 *
 * @author likeqc.top
 * @since 2021-04-27
 */
@Service
public class CourseClassServiceImpl extends ServiceImpl<CourseClassMapper, CourseClass>
    implements CourseClassService {
    
    @Autowired
    CourseClassMapper courseClassMapper;
    @Override
    public IPage<Map> getListByCourseId(Page page, Integer courseId) {
        return courseClassMapper.getListByCourseId(page, courseId);
    }
}
